{include file=header.html}
<div class="content">
	<div class="sitemap-wrap">
		<ul class="basic-info f-cb">
			<li class="left">网站地图</li>
			<li class="right">
				<a href="/" target="_blank">首页</a>
				<a href="{url app=search&is_hot=1}" target="_blank">热销商品</a>
				<a href="{url app=member&act=register&ret_url=$ret_url}" target="_blank">注册</a>
				<a href="{url app=member&act=login&ret_url=$ret_url}" target="_blank">登录</a>
			</li>
		</ul>
		<h2>商品分类</h2>
		<table width="100%" class="category">
                    <!--{foreach from=$gcategorys item=gcategory name=gcategory}-->
                        <!--{foreach from=$gcategory.children item=fchildren name=fchildren}-->
                            <tr>
                                <!--{if $smarty.foreach.fchildren.first}-->
				<td width="120" class="left" rowspan="{$smarty.foreach.fchildren.total}">
					<a href="{url app=search&cate_id=$gcategory.id}" target="_blank">{$gcategory.value|escape}</a>
				</td>
                                <!--{/if}-->
                                <td width="120" class="center">
					<a href="{url app=search&cate_id=$fchildren.id}" target="_blank">{$fchildren.value|escape}</a>
				</td>
				<td class="right">
                                    <!--{foreach from=$fchildren.children item=tchildren name=tchildren}-->
					<a href="{url app=search&cate_id=$tchildren.id}" target="_blank">{$tchildren.value|escape}</a>
                                        <!--{/foreach}-->
				</td>
                            </tr>
                        <!--{/foreach}-->
                    <!--{/foreach}-->
		</table>
		<h2>店铺列表</h2>
		<ul class="store f-cb">
                  <!--{foreach from=$stores item=store}-->
			<li>
				<a href="{url app=store&id=$store.store_id}" target="_blank">{$store.store_name|escape}</a>
			</li>
                  <!--{/foreach}-->
		</ul>
		<h2>帮助中心</h2>
		<table width="100%" class="category">
                    <!--{foreach from=$acategorys item=acategory name=acategory}-->
                        <tr>
				<td width="120" class="left">
					<a href="{url app=article&cate_id=$acategory.id}" target="_blank">{$acategory.value|escape}</a>
				</td>
                        <td class="right">
                        <!-- {if $acategory.children}-->
                        <!--{foreach from=$acategory.children item=fchildren name=fchildren}-->
					<a href="{url app=article&cate_id=$fchildren.id}" target="_blank">{$fchildren.value|escape}</a>
				<!--{/foreach}-->
				<!-- {else} -->
				暂无记录
				<!-- {/if} -->
				</td>
                        </tr>
                    <!--{/foreach}-->
		</table>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$('.category:first').find('tr:even').children('.center').addClass('bgc');
		$('.category:first').find('tr:even').children('.right').addClass('bgc');
		$('.category:last').find('tr:even').children('.right').addClass('bgc');
	});
</script>
{include file=footer.index.simple.html}